import {actionTypes} from './index'


export const activateLoading = () => {
    const value = {
        btnTextId: 'submittingBtnText',
        loading: true
    }
    return {
        type: actionTypes.ACTIVATE_LOADING,
        value: value
    }
}

export const closeLoading = () => {
    const value = {
        btnTextId: 'submitBtnText',
        loading: false
    }
    return {
        type: actionTypes.CLOSE_LOADING,
        value: value
    }
}
